<extend name="template/base_index" />

<block name="area_header">
    <title>母婴拼团{$price}:{$name}</title>
    <script type="text/javascript" charset="utf-8" src="__UPLOAD__/ueditor/1.4.3/ueditor.all.js"> </script>
    <link rel="stylesheet" href="__UPLOAD__/ueditor/1.4.3/themes/default/css/ueditor.css">

    <link rel="stylesheet" href="__CSS__/good_detail.css">
    <script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>

    <script>
        wx.config({
            debug: false,
            appId: "{$signPackage.appId}",
            timestamp:"{$signPackage.timestamp}",
            nonceStr: "{$signPackage.nonceStr}",
            signature: "{$signPackage.signature}",
            jsApiList: [
                // 所有要调用的 API 都要加到这个列表中
                'checkJsApi',
                'onMenuShareTimeline',
                'onMenuShareAppMessage'
            ]
        });
        wx.ready(function () {
            wx.checkJsApi({
                jsApiList: ['onMenuShareTimeline',
                    'onMenuShareAppMessage'], // 需要检测的JS接口列表，所有JS接口列表见附录2,
                success: function(res) {
                    // alert(JSON.stringify(res));
                }
            });
            // 在这里调用 API
            wx.onMenuShareAppMessage({
                title: '母婴拼团{$price},{$name}', // 分享标题
                desc: '母婴拼团，邀您共通参与拼团', // 分享描述
                link: '', // 分享链接
                imgUrl: 'http://muyin.8raw.com/api.php/picture/index?id={$imglist['0']['id']}', // 分享图标
                type: '', // 分享类型,music、video或link，不填默认为link
                dataUrl: '', // 如果type是music或video，则要提供数据链接，默认为空
                success: function () {
                    // 用户确认分享后执行的回调函数
                },
                cancel: function () {
                    // 用户取消分享后执行的回调函数
                }
            });
        });
    </script>
</block>
<block name="area_body">
    <div class="common_head">
        <a onclick="history.back()"><i class="fa fa-chevron-left"></i></a>
    </div>
    <div class="good-content">
        <div class="swiper-slide" style="position:relative;">
            <img src="http://muyin.8raw.com/api.php/picture/index?id={$imglist['0']['id']}" width="100%"/>

        </div>
        <div class="good-mtop"><h3>{$vo['name']}</h3></div>
        <!--<div class="good-intr"><p>{$vo['synopsis']}</div>-->
        <!--<br><span>原价：{$vo['ori_price']}</span><br><span class="quantity">库存:{$vo['quantity']}</span> 开始时间：{$vo['start_time']}</span><br>-->
        <div>
            <!--<div class="good-price" style="float:left"><i class="fa fa-jpy"></i>{$price}</div>-->
            <strike>
            <i class="fa fa-jpy"></i>原价：{$ori_price}</strike>
        </div>
        </br>
        <div class="good-main">
            <div class="good-dtop"> <div class="good-intr" style="float:left">{$end_time}结束</div> <div class="good-intr" style="float:right">共有{$attend_sum}人参团</div></div>
        </div>
        <div class="good-main">
            <div class="good-mtop"><h3>{$name}</h3></div>
            <div class="good-intr"><p>{$synopsis}</div>
            <div class="good-mimg">
                <!--<div class="good-dtop"><div class="good-source">货源：{$dt_origin_country}</div><div class="good-frank">邮费：{$postage}</div></div>-->
                <!--<div class="good-dtop"><div class="good-source">成团人数：{$group_sum}</div><div class="good-frank"></div></div>-->
                <h >支付开团，人数不足时自动退团</h>



<volist name="group_config" id="config" >
                <div style="background-color:#CCFF00; width: 45%; height: 40px;float:left;border-radius: 5px;margin:5px;margin-bottom:15px;">

                    <a href="{:U('Group/good_detail',array('id' => $id,'counttype' =>$config['type'],'status'=>$config['status']))}">
                    <h4 style="color:black;text-align: center; top:50%;"> {$config['sum']}人团价格：{$config['price']}</h4></a>
                    <div class="pror" style="background:none;z-index:1;">
                        <if condition="$config['status'] eq 0"><img src="__IMG__/tuanzhengzai.png" width="40px" height="40px" border="0"></if>
                        <if condition="$config['status'] eq 1"><img src="__IMG__/tuanzhengzai.png" width="40px" height="40px" border="0"></if>
                        <if condition="$config['status'] eq 2"><img src="__IMG__/tuanchenggong.png" width="40px" height="40px" border="0"></if>
                        <if condition="$config['status'] eq -1"><img src="__IMG__/tuanshibai.png" width="40px" height="40px" border="0"></if>
                    </div>

                </div>
    <p></p>
</volist>


                    <div class="good-link">
                        {$detail}
                    </div>

            </div>
        </div>
    </div>
    <!--<center>-->
        <!--<a class="footer" href="{:U('Group/message')}">-->
            <!--参加拼团-->
        <!--</a>-->
    <!--</center>-->
    <script src="__JS__/jquery-weui.min.js"></script>


</block>